package com.atguigu.springcloud.service;

import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * ClassName: PaymentFallbackService
 * Package: com.atguigu.springcloud.service
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-11-05
 * Time: 17:08
 */
@Component
public class PaymentFallbackService implements PaymentHystrixService{

    //正常的话 就执行那个接口 不正常的话 执行这个类里面的东西
    @Override
    public String paymentInfo_ok(Integer id) {
        return "OK";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "NO";
    }
}
